package schdule

import (
	"awesomeTask/application/models/programe"
	awesomeTask "awesomeTask/commom"
)

var TABLE_NAME string = "t_task_schedule"

func LoadTaskFromDataBase() []map[string]interface{} {
	sql := "select s.* from " + TABLE_NAME + " as s inner join " + programe.TABLE_NAME + " as p on p.id=s.task_id where s.status=1"
	return awesomeTask.Query(sql)
}
